package 补充.日期操作;

import java.time.ZoneId;
import java.time.ZonedDateTime;

public class DateNew {
    public static void main(String[] args) {
        DateNew date = new DateNew();
        date.testZonedDateTime();

    }
    public void testZonedDateTime(){
        ZonedDateTime date2 = ZonedDateTime.parse("2025-02-03T10:15:30+08:00[Asia/Shanghai]");
        System.out.println(date2);
        ZoneId id = ZoneId.of("Europe/Paris");
        System.out.println("区:"+id);
        ZoneId zone = ZoneId.systemDefault();
        System.out.println("当前时区"+zone);
    }
}
